package maze.levels;

import java.applet.Applet;
import java.applet.AudioClip;
import java.net.URL;
import java.util.List;

/**
 *
 * @author loki
 */
public class Level {
    private AudioClip audio;
    
    private List<Question> questions; 
    private List<Knowledge> knowledge;
    private Animal animal;
    
    public Level(Animal animal, List<Question> questions, List<Knowledge> knowledge, URL backmusicURL) {
        this.animal = animal;
        this.questions = questions;
        this.audio = Applet.newAudioClip(backmusicURL);
        this.knowledge = knowledge;
        
        //playAudio();
    }    
    
    /**
     * Loops an audio clip over and over again.
     */
    public void playAudio() {
        audio.loop();
    }
    
    public void stopAudio() {
        audio.stop();
    }
    
    public Animal getAnimal() {
        return this.animal;
    }
    
    public List<Question> getQuestions() {
        return this.questions;
    }
    public List<Knowledge> getKnowledge() {
        return this.knowledge;
    }
}
